﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using DAL.Data;

namespace DAL.Classes.Repository
{
    public interface IRepository<T> where T: class
    {
        T Get(Expression<Func<T, Boolean>> filter);
        IEnumerable<T> GettAll();
        IEnumerable<T> GetMany(Expression<Func<T, Boolean>> filter);

        void Add(T entity);
        void Delete(T entity);
        void Save();
    }
}
